function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '物资名称',
      dataIndex: 'matNm',
      scopedSlots: { customRender: 'matNm' },
      align: 'center',
    },
    {
      title: '物资类别',
      dataIndex: 'matType',
      scopedSlots: { customRender: 'matType' },
      align: 'center',
    },
    {
      title: '物资数量',
      dataIndex: 'matNum',
      scopedSlots: { customRender: 'matNum' },
      align: 'center',
    },

    {
      title: '重量',
      dataIndex: 'weight',
      scopedSlots: { customRender: 'weight' },
      align: 'center',
    },
    {
      title: '规格型号',
      dataIndex: 'specModel',
      scopedSlots: { customRender: 'specModel' },
      align: 'center',
    },
    {
      title: '处理方式',
      dataIndex: 'dealType',
      align: 'center',
      scopedSlots: { customRender: 'dealType' },
    },
    {
      title: '处理单位',
      dataIndex: 'dealUnit',
      scopedSlots: { customRender: 'dealUnit' },
      align: 'center',
    },
    {
      title: '处理单价(元)',
      dataIndex: 'dealPrice',
      align: 'center',
      scopedSlots: { customRender: 'dealPrice' },
    },
    {
      title: '处理金额(元)',
      dataIndex: 'dealAmt',
      align: 'center',
      scopedSlots: { customRender: 'dealAmt' },
    },
    {
      title: '处理日期',
      dataIndex: 'dealTime',
      scopedSlots: { customRender: 'dealTime' },
      align: 'center',
    },
    {
      title: '列账时间',
      dataIndex: 'vchTime',
      scopedSlots: { customRender: 'vchTime' },
      align: 'center',
    },

    {
      title: '单位',
      dataIndex: 'unit',
      scopedSlots: { customRender: 'unit' },
      align: 'center',
    },
    {
      title: '是否有过磅信息',
      dataIndex: 'ifWeight',
      align: 'center',
      scopedSlots: { customRender: 'ifWeight' },
    },
    {
      title: '是否有审批记录',
      dataIndex: 'iffApp',
      scopedSlots: { customRender: 'iffApp' },
      align: 'center',
    },
    {
      title: '记录人',
      dataIndex: 'recorder',
      scopedSlots: { customRender: 'recorder' },
      align: 'center',
    },
    {
      title: '负责人',
      dataIndex: 'header',
      align: 'center',
      scopedSlots: { customRender: 'header' },
    },
    {
      title: '备注',
      dataIndex: 'remark',
      scopedSlots: { customRender: 'remark' },
      align: 'center',
    },
    {
      title: '操作',
      align: 'center',
      dataIndex: 'action',
      width: 150,
      scopedSlots: { customRender: 'action' },
    }
  ]
  return cols
}

export {
  columns,
}